package com.mhc.haval.service;

import com.mhc.haval.bo.AuditQuotaBO;
import com.mhc.haval.dal.model.AuditQuotaDO;
import com.mhc.haval.exception.HavalCommonException;
import com.subaru.common.entity.BizResult;
import com.subaru.common.query.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Churry
 * @create 2017-10-11 11:25
 **/
@Service
public interface AuditQuotaService {

    /**
     * 获取审核额度列表
     * @param companyNo
     * @return
     */
    PageResult<AuditQuotaDO> getAuditQuotaList(String companyNo, AuditQuotaBO auditQuotaBO) throws HavalCommonException;

    /**
     * 增加或修改审批额度
     * @param auditQuotaBO
     * @return
     */
     Boolean addOrModifyAuditQuota(AuditQuotaBO auditQuotaBO) throws HavalCommonException;

    /**
     * 获取审批额度详情
     *
     * @param quotaId
     * @return
     */
    AuditQuotaBO getAuditQuotaDetail(Long quotaId) throws HavalCommonException;
	
	/**
     * 删除审批额度
     * @param quotaId
     * @return
     * @throws HavalCommonException
     */
    public Boolean deleteAuditQuota(Long quotaId) throws HavalCommonException;

    /**
     * 通过员工编号，获取审批额度详情（外部接口）
     *
     * @param staffId
     * @return
     */
    AuditQuotaBO getAuditQuotaDetailByStaffId(Long staffId) throws HavalCommonException;

}
